import { get, post } from '@/utils/request'

const BASE_URL = window.baseUrl.icp

// 分页查询
export function pageList(query) {
  return get(BASE_URL + '/approve/printBurn/pageList', query)
}

// 批量删除审批信息
export function deleteList(ids) {
  return post(BASE_URL + '/approve/printBurn/delete?ids=' + ids)
}

// 根据IP或终端名称查询
export function getTerminalList(query) {
  return get(BASE_URL + '/approve/printBurn/getTerminalList', query)
}
// 保存或更新
export function saveOrUpdate(query) {
  return post(BASE_URL + '/approve/printBurn/saveOrUpdate', query)
}
//   根据ID查询详情
export function queryById(query) {
  return get(BASE_URL + '/approve/printBurn/' + query)
}
// 下载导入模板
export function template(query) {
  return get(BASE_URL + '/approve/printBurn/template', query)
}
//   导入
export function importData(query) {
  return post(BASE_URL + '/approve/printBurn/importData', query)
}
//   导出

export function exportFile(query) {
  return get(BASE_URL + '/approve/printBurn/export', query)
}

// 获取组织机构树
export function treeselect(query) {
  return get('/assets-api/assetsOrg/treeselect', query)
}
// 获取终端树

// 获取运维对象类型
export function getOperationType(query) {
  return get(BASE_URL + '/approve/operate/getOperationType', query)
}
// 批量开启
export function allowed(query) {
  return post(BASE_URL + '/approve/printBurn/allowed?' + query)
}
